const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 因为user要自己写,所以user的没有用了
  // 页面会出现早不到avatar的报错,因为主页有用到
  // token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto,
  name: state => state.user.userInfo.username,
  //
  userId: state => state.user.userInfo.userId
}
export default getters
